@extends('admin.layout.layout')

@section('content')

	<div class="panel-body">
        <div class="row">
            <div class="col-lg-6 col-lg-offset-3">
                <form role="form" action="{{url('/admin/cate/update')}}" method="post">
                    <div class="form-group">
                        <label>商品分类修改</label>
                        <div class="alert alert-info">
                            @if(session('errors'))
                                @foreach($errors->all() as $error)
                                    {{$error}}
                                @endforeach
                            @else
                                请输入,你要修改的商品分类名
                            @endif
                        </div>
                        <div>
                            <input class="form-control" type="text" name="catename" value="{{$cateinfo->catename}}">
                    	   <input type="hidden" name="id" value="{{$cateinfo->id}}">
                        </div><br><br>
                    </div>
                        {{ csrf_field() }}
                    <center>
                    	<button class="btn btn-default cate_confirm">修改分类</button>
                    </center>
                </form>
            </div>
        </div>
        <!-- /.row (nested) -->
    </div>
   <script src="/public/admin/js/cate.js"></script>

@endsection